<template>
	<view class="loginBox  pL15 pR15">
		<view>
			<block v-if="info.checkStatus==0">
				<view class="flex jst-center">
					<u-image :width="174" :height="188" :src="resources.shWait" mode=""></u-image>
				</view>
				<view class="font18 t-center mT10">资料审核中</view>
				<view class="flex jst-center mT15">
					<view class="w50 u-6 font13 t-center">工作人员会尽快审核你的信息请耐心等待</view>
				</view>
				<view class="flex jst-center mT25">
					<view class="pointer editInfoBtn" @click="goBack">确定</view>
				</view>
			</block>
			<block v-else-if="info.checkStatus==10">
				<view class="flex jst-center">
					<u-image :width="174" :height="188" :src="resources.shTj" mode=""></u-image>
				</view>
				<view class="font18 t-center mT10">审核通过</view>
				<view class="flex jst-center mT15">
					<view class="w50 u-6 font13 t-center">{{info?.checkOpinion}}</view>
				</view>
				<view class="flex jst-center mT25">
					<view class="pointer editInfoBtn" @click="goHome">确定</view>
				</view>
			</block>
			<block v-else>
				<view class="flex jst-center">
					<u-image :width="174" :height="188" :src="resources.shFail" mode=""></u-image>
				</view>
				<view class="font18 t-center mT10">资料审核失败</view>
				<view class="flex jst-center mT15">
					<view class="w50 u-6 font13 t-center">{{info?.checkOpinion}}</view>
				</view>
				<view class="flex jst-center mT25">
					<view class="pointer editInfo" @click="xf.onlineUtils.route(`/pages/companyPage/subpackge/rz/qyrz`)">修改资料</view>
				</view>
			</block>
		</view>
	</view>
</template>

<script>
	import {getWaitShInfo} from "@/api/companyInterface/user.js"
	export default {
		data() {
			return {
				info: {
					"checkStatus": "",
					"checkOpinion": "",
					"xfOddUserId": ""
				},
				rzType: ''
			}
		},
		onLoad(e) {
			this.rzType = e.rzType ? e.rzType : '';

		},
		onShow() {
			this.getShInfo()
		},
		methods: {
			getShInfo() {
				getWaitShInfo({}).then(res => {
					this.info = res.result;
				})
			},
			goHome() {
				if (this.define.identification == 'units') {
					uni.switchTab({
						url: "/pages/companyPage/my/index"
					})
				} else {
					uni.switchTab({
						url: "/pages/economicPage/home/index"
					})
				}
			},
			goBack() {
				if (this.define.identification == 'units') {
					uni.switchTab({
						url: "/pages/companyPage/my/index"
					})
				} else {
					uni.reLaunch({
						url: "/pages/login/login"
					})
				}

			}
		}
	}
</script>

<style>
	page {
		min-height: 100%;
		/* #ifdef MP-COMPANY */
		background: linear-gradient(0deg, #F8FAFF, #EBF0FF);
		/* #endif */
		/* #ifdef MP-ECONOMIC  */
		background: linear-gradient(0deg, #F8FAFF, #EBFCFF);
		/* #endif */
	}
</style>
<style scoped lang="scss">
	.loginBox {
		padding-top: 200rpx;
	}

	.editInfo {
		width: 500rpx;
		height: 100rpx;
		line-height: 100rpx;
		text-align: center;
		font-size: 32rpx;

		border-radius: 30rpx 30rpx 30rpx 30rpx;
		/* #ifdef MP-ECONOMIC */
		border: 2rpx solid #00A0C6;
		color: #00A0C6;
		/* #endif */
		/* #ifdef MP-COMPANY */
		border: 2rpx solid #386AFF;
		color: #386AFF;
		/* #endif */

	}

	.editInfoBtn {
		color: #fff;
		width: 500rpx;
		height: 100rpx;
		line-height: 100rpx;
		text-align: center;
		font-size: 32rpx;

		border-radius: 30rpx 30rpx 30rpx 30rpx;
		/* #ifdef MP-ECONOMIC */
		background-color: #00A0C6;
		/* #endif */
		/* #ifdef MP-COMPANY */

		background-color: #386AFF;
		/* #endif */
	}
</style>